/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_const_param.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_CONST_PARAM
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_const_param.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_CONST_PARAM::CTable_PPM_CONST_PARAM( )
 :NPCRecordSet( )
{
  setTableName( "PPM_CONST_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  CONST_PARAM_ID.setField( "CONST_PARAM_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( CONST_PARAM_ID );
  CONST_PARAM_NAME.setField( "CONST_PARAM_NAME", DATA_CHAR, 60, 0 );
  makeTableItem( CONST_PARAM_NAME );
  CONST_PARAM_DESC.setField( "CONST_PARAM_DESC", DATA_CHAR, 500, 0 );
  makeTableItem( CONST_PARAM_DESC );
  ATTR_VALUE_TYPE.setField( "ATTR_VALUE_TYPE", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_TYPE );
  CONST_PARAM_VALUE.setField( "CONST_PARAM_VALUE", DATA_CHAR, 500, 0 );
  makeTableItem( CONST_PARAM_VALUE );
}


CTable_PPM_CONST_PARAM::CTable_PPM_CONST_PARAM( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_CONST_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  CONST_PARAM_ID.setField( "CONST_PARAM_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( CONST_PARAM_ID );
  CONST_PARAM_NAME.setField( "CONST_PARAM_NAME", DATA_CHAR, 60, 0 );
  makeTableItem( CONST_PARAM_NAME );
  CONST_PARAM_DESC.setField( "CONST_PARAM_DESC", DATA_CHAR, 500, 0 );
  makeTableItem( CONST_PARAM_DESC );
  ATTR_VALUE_TYPE.setField( "ATTR_VALUE_TYPE", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_VALUE_TYPE );
  CONST_PARAM_VALUE.setField( "CONST_PARAM_VALUE", DATA_CHAR, 500, 0 );
  makeTableItem( CONST_PARAM_VALUE );
}

CTable_PPM_CONST_PARAM::~CTable_PPM_CONST_PARAM( )
{
    close();
}

